set submission method to get
handle all requests via GET
reformatting the code