Fix team invite view and update gitigore