adding logout buttong in base class