removes superfluous view