Divided MainActivity into UI, fascade, and business logic