Are you saying you didn't use a barb and swivel nut for the beer line?
As for the foam...are these commercial beers you're trying to dispense? If so, the run o' the mill BMC beers are typically carbed higher than run o' the mill home brews, and a five foot 3/16" ID line is definitely going to be challenged to contain CO2 break-out as it just doesn't put enough restriction on the flow. And if you're beer line is actually 1/4" ID, you'll never get a good pour with less than around 20 feet of line (probably need even more than that!)
Anyway...I suggest you pick up 12 feet of 3/16" beer line
(and not that vinyl crapola from Home Depot or Lowes) and start with the full length in place. Set your gas pressure per this carbonation table
using the beer temperature and, say, 3 volumes of CO2, as the indices.
Give that set up time to stabilize and then start pouring!