Refactors createToast to showToast.