base activity for common methods