script for switching screens. currently broken