Service implementation started. Refactoring of MainActivity