dynamic sizing and positioning for AHTextField
refactor