removed not used code from main activity