check color when window was loaded