integrated first grid functionality into gui, changed gui message processing