Keep popup page/view on dom after refresh

I have a popup page with 10 tabs. When I refresh the popup closes forcing a user to start from the beginning instead of continuing he/she was.

How do I keep it in history push state?