Refactor views
Add .htaccess for apache setup