add relations to community view and adjust layout