check request url
render home and subpage