Fixed so simple address value is generated right and added wp_ajax for that