more code added

more code added to gui