Added edit bug function and dropdown select