Added ability to have dynamic side panels

Changed the logic used when handling page requests