refactor of code to separate logics
refactors rationales loop and display