add ls functionality and refactor directory to render correct directory ...

...view