some refactoring;
minimize scripts and styles;