Adds first page function