Modified UI and added scan barcode function for patient