Formatting and add addprescription button functionality