refactored into multiple files and using ionic router to render first page