Fixed minor bugs. Improved UI.

- Fixed sidebar bug in submitted.html by requesting context from views.py
- Improved UI of list of Pending Permissions and their detail pages.