changes to make sure tabs dont reload new page

not sure if this is the way to do it, but i manage to get it to work. will have to see if it creates any issues