added a json save btn directive