cleaned up some code
Added a timeout before reloading grid