added code for editing the own page