refactored hook_block_view