added render function to SelectedBlock