Refactoring

-moved stuff out of MainActivity into separate class
-tweaked UIBlocker