fix method for updating pages action