Properly save edited attributes of post after double click