move data to server, change to ajax call