added api documentation for view widget