Got rid of unused stuff
Fixed input focus handling for text inputs