improved view.java