removed some bad code from ActivityMain