Implemented direction option for dropdown