replace deprecated setFlash method with flash bag usage