created button and spinner directives