Main page and detail page works