Implemented hide and show transitions for the drop down elements