change colours and improve window-status when resized