minor changes to controller, deleted useless view