add post method to homepage controller