added funtion to go up and back in directories