Refactor ui cleanup

Updates to Foundation 5 and overhauls portions of the UI. Tests were added.