fixed showDocument: not being called issue