Table sorting selector shown, remove annoying js code bug for events