Moved view code, added config file