add space view code