Refactor tabbed activity;