add downloading document flow and downloadlog