some code beautifying while rebuilding association views