Fixed endless new instances between menus

Switching from different activities would create new instances of those
activities, rather than going back to the one already created.
This issue has now been fixed.