added editting access hook