changing tittle to title and refactoring views and controller