Added timeout function to have window properly scroll down when changing chat windows