I solved this problem. I someone have a similar problem, i can help him (reply this message). Where is the documentation about this kind of things? I learned to do it reading the standard admin templates because i didn't found any related documentation.