move code to the right page