console output when object is clicked