Pass model to the edit template