refactoring: moved several helper methods from MainActivity to Helper class