changes on window behaviour