added options to appendPage