hide options button only if flag set