Fixed sync issues leading to sometimes the separator not beeing shown

Changed from using enumeratorWithBlock to using for/while in order to ensure sequential execution of building the view. It has been seen that when using enumeratorWithBlock, the separators are not always built correctly into the view