Implemented jump to previous dir and dispatch function