some refacroting views