implemented onclick for cd (plus ls when cd is clicked)