Fix issues with document actions panel ui in cms

... in one commit :)