button styling and a little bit of refactoring of a directive