Tried fixing some bugs in showing subpages