cleaned up clear screen code