handle state switching logic for opening screen conversation