Functional open document button.

NEED TO LOOK INTO UPDATING READ DOCUMENT DATABASE.