Added apis for bugs controller and logic in dashboard controller
merged