make home controller handle both get and post