submit chat btn handler