added color state to main page