Fixed bug where phi showed incorrectly.
Fixed other phi bug and separated random buttons.