Changes the way the block ui is changed to visible/hidden