begin screen code