added basic gui and event handling for text fields