added user defined Single and Double commands to resize the GUI window