move format if modal method into primary application controller