made new controller class to manipulate category on the screen