ui now working, but ugly and broken