refactoring the controler and views