Removed unnecessary code from MainActivity