refactor css/js