#282 added ajax call; fixed bug in stored user_id