fix the bug for click handler
change the popup text-align