already restores home page after edition

code full of alerts...