dispose first Frame when clicked