drop lists once again take priority over buttons when open
made rect comparison function for comparing against non-rects