Cleaning view template
Refactoring attributes and config