Added method to replace things into grid

called redisplayAll
also fixed bug in the change sort method