I'm kind of confused on what exactly is wrong. You say that one button is the problem (the Add button), then you say that if you click the edit button it causes an internal server error? Maybe examples of the templates would help in debugging.
Adrian
Adrian