Tabs work

Made tabs work with cookie, added getFromCookie method to allow getting
of values easier