Got the browser menu working. Now the cookies are handled correctly, so when the user changes tabs it remember the last subtab that was open under the main tab. We can also now load pages correctly. Changes also include some tools for backend page generation so creating new pages in the future will be much easier.