UI cleanup
Tabs start closed.
Code cleanup
Reformatted code.
Removed unneccesary nesting