updated templates so that pagination of form pages is possible as well as pagination of submissions