implemented function to check role and show navigatin in dependency