refactoring default.ctp