Reorganize init.

Reorganized the initialize function to pass the channel id to getSingle
for the new delete button. Also a lot of whitespace changed.