Pass bp as constructor argument to view