Replace get post ajax page with Kotlin version