Update code on server for data viewing