made textfield rendering more advanced