Basic titlebar functionality.