add initialize function to body tag