fixed typo in layout.php
Modified formTitle function to output relevant extremity when given it