extract common base activity