Made a few basic changes such as filtering pages by role and refactoring main.html