fixed up add prescription ajax call