added role and team functionalities