add public and user id to edit page