fix some bugs; implement example theme