refactoring frontend