update styling straight after moving to window