added more controller methods, took out view methods from controller and put in a view module