move add bug function to navigation bar