initial version of page directive