Moving from ajax to server-side UI