save active tab in main activity