split css + reset button function + refactoring