fixing button dropdown bug