adding clode buttton to messages