server side training is implemented. Working on ui and noise functions