Small refactoring in mainActivity
Merge remote-tracking branch 'origin/master'