refactor views and routes into source folder