Added methods to apartments controller