added a function to add more objects on click