Adding customizable views and updating document