change id, move function to .js