add the view interface and use it