Removed unused object and method from MainActivity