after much headache, got ajax added in