Fixed #7: including ui, toggle functionality, excess xhr requests, etc