created a directive for transforming buttons when stuff is loading