creating new objects on each mouse click