set warning and success messages on team index from appearing every time you go to the page