Added visible topics, fixed AJAX issue when adding topics

See commits for details