success and failure on click attributes - pre refactor