update script name with custom hooks, added hooks to manipulate gallery