Edit some functions on grid