improoved editpage