Split aplication settings into MVC pattern and resolved bugs