add padding and curosr position
adjust the format
add edit button status
add radius for dialog
merge code