added uri checking for headers in layout; added form update submission;