removing unnecessary views