Implemented recursive panel rendering and fixed a null reference exception in
the RelationLink class.