Tweaked blogmain

Handles if the blogid does not exist and provides a link back to the
index page where the user can click a link