fixed issues #11 and #12

Direct link on grid if only one action is given
Context Menu is not cleared if no action is set