Changing product form to directive