Centralizing allowedTask logic and fixing readonly screens