Why are you doing this in site-edit?