Changing the path when selecting a library item