Added edit and add functionality to homepage template form