Added barebones for the UI. Fixed several critical bugs.
Fixed several bugs. Still buggy TT.TT