added documentation for view