Fix a problem caused due to discrepency of tabulation and spaces
Use template inheritance to reduce reptition of code. Now the page header, footer, and device picking navbar is part of mother template.