cleaned up code and removed upate button (since it happends automatically now )