Refactor ssc/views. rename methods, DRY long string into dict of sessions logic.