FIX: Add $allowed_actions and explicitly define handleList and handleView