resolve #30. Show only actions when selecting actions and events when selecting events