Pages and flips... NullPointerException