install cancan + refactoring