removed some extra methods in MainActivity