fixing hide show blocks problem