changed main activity to extend base activity