fix problems on edit page