changed controllers, added htaccess file for url rewrite