Script for handeling screens