added a counter to track number of times the application has been used
issue with post via ajax