refactoring flash, fix team new/edit, some code
clean up
fix path after team create, tidy up code
update team counter on deletes