Have DocX file display in Word rather than Gdocs when selected from a file type

Hi I am trying to build a document management system. However, when I click on a uploaded Word file it opens the doc in Google Docs. As a result the formatting becomes incompatible. Is there anyway we could click on file and have it open with word online or better yet word Desktop? Would it be difficult to incorporate that functionality?