refactoring, create 3 directive, style html.