bring main frame to the front whenever a command is invoked on it