Obsolete formatting.js
Fix some refactoring mistakes
Clean up after api refactoring
updated styles for ui