Adding editing feature for the bugs controller