refactor controller and view
update git ignore file