Better mix of html and php
Deleted else statement
Added footer and header