added proper path to main page to redirect