Setting directory on next click.