added if condition as well as abilty to open new document
removed the personal content