made cup views handle both GET and POST if method is not specified