Added missing form ends