add a base activity

to put all same functions in this activity such as menu