Adding ajax handler class