fixing import error and adding redirect for /