Can now switch between tabs. This will probably stay javascript after we add in the backend