refact elements form