refactored screen utils functions