delete views and correct warnings