added add/remove page functionality