fixed functions up() and down() for quick directory navigation