implemented titlebar