Keyboard now closes when the user toggles the service. Cleaned up the activity class