removes unnecessary view