refactor main page apartment partial