frontend: minor refactoring in UICommand

Change setIsExecutionAllowed to return the 'this' object to allow
calling this method using fluent API

Change-Id: I7fcdeae310b33b28f9be8176f0dea34b4a92b083
Signed-off-by: Arik Hadas <ahadas@redhat.com>