removed unused code from MainActivity