Cleanup + proper backbutton behaviour in MainActivity.