Added actions for adding and updating pages