switched to partial form and added destroy method