Add input parameters and drawing rectangle