cleaned up Main Activity