attribute modification in form functions