Implement save instance state on main activity