crud apartment now working as intended