use call for is_dir and pathinfo
added dropdown selector