Refactor text_styles_controller