refactor of success

refator of how we get the success data from the dom and added an option
to turn the message off