making flashes show every time view appears