not call theme function directly
removed added ajax commands
removed parameter redeclaration