Avoid page flickering when displaying edit forms