one more parameter

// isCommand indicates that user triggered function with mouse