-Added functionality for the "Edit" button.