form page handling functions and styling