fix bug in views and update documentation