Fix unclosable window when HIDEGUI=1
Fix position of buttons