working.
Refactoring structure of mainActivity
Connection scheme seems to be working