added change detection in gridpage, for changing the publish buttons