implements user subscription through ajax