things are still broken some javascript is refactored