Move session checking to top of file (why did it get moved in first place?)
Start of modify, implemented basic tabs