function to track screens