rename to a controller, add shorthand and jquery syntax