adds style to direction panels