fixed bug for editing a newly added site right after registrtion