Implementation of command dialog

Change-Id: If2b8955a241a4e9e948a56b11d0cdc679ea8554b