if the screen type changes, have to reinitialize the screen functions