moved navbar into template. replaced toJSON with rails wrap_parameters