adding success message after prescribing