refactoring the wl_view