add dismiss and show options to JS