change document/show method