added screen-rotation setting so stuff is not destroyed