Auto-hide success messages

* Use showSuccessMessage and showFailure message
for success and error messages respectively