changed name of addSuccessMessage to addFlashMessage