moved bug models into client side and id property added in bug model