separate homepage controller to GET and POST