implemented directory navigation