moving code inside body tag