adds SendPageFromClass macro