added save function on prescription