handle server pages