Added edit functionality js/html