new script for toggling screen orientation