Added "Done" button functionality