created macro to generate navigations

added form_enctype to forms
some minor changes