Made dynamic loading on change rather than on click.