bug fixed. now when path changes, mainview will show correct html