adding elegant way for page serving