Refactored each page into seperate function and added a form that supports both GET and POST