Improve UI

The UI allows the number of neurons per layer, number of layers and
learning rate to be adjusted while the program is running.