Details view and task permission refactor