fix form display bugs