adds mappings for window resizing