add view box to handle error messages and views