MainActivity: Improve handling of view pager tabs