added flash messages and players pages