Better handling of onclick in folder list.
Fix of buggy next and previous, wait until the process is terminated when stopping.