better titlebar positioning