switch to get_object_or_404 on layer views