move all ui functionality out of air_hockey.js