added main view and main template