base activity class for lifecycle