added states to objects may change this to links and fixed a bug in the blocks objects