Make frame visible / hidden based on history