make application_controller helpers accept hashes