modify quick appoint and query flow