Changed hook to react on master branch only