ajax toggle. fixes #4