Setting cancel button behavior and filling some fields in simulation tab.