delete unused code from MainActivity