Added clone button functionality.