made CommonActivity class to share between two activities