modified ng-show function for dropdown