remove unnecessary views