tweaked to prevent dropdown overflow