Add create, view and list of bug and fix some bugs