index php to hook created