changed apply modal