Updated the layout using functions rather than the straight HTML
added a backup file