Organized code into an new SC immediate function.

Created a topicCrud immediate function in SC.
Need to rename viewUtils in snippetCrud, and move it to SC.