changed a new template, get pages&mail-function ready