added hook to set project id and project name