improve form attributes