refactor dresses front-end