templates/main folder splitting made