refactored membershipscontroller edited create/destroy