fixed the expanding dropdown problem