updated submit and edit templates and CSS