format page and bind data on post