Added index and main, with base template