Target directory getting populated, on load event of app main page