moved main content div into template block for better modularity