setting chat states