finally solved bugs. using formtastic