new method for custom titlebar with 10.10 SDK