added topbar method