Refactored MainACtivity class

Signed-off-by: Stajic Igor <igorstajic273@gmail.com>