uses projectId argument in case it was passed to the showFile function

Since there is the option to pass the projectId as the first argument then should use it when it is available.