fixed ie wtfs, refactored ui, codes