Fix react warning and add click handler