Refact view