Abstracted add menu form into directive