create/edit foundation