Added _check_access function
Cleaned up controller and domain objects