tidied up blog sidebar controller and template code