created two directives for dropdown component