make run on window size