added regex matching to templates/ajaxify. needs cleanup, just unblocking baris