fixed lots of bugs, can switch between tabs now