Changed baseclass of mainactivity