used layout page to remove duplication