Fix an error while showing the bug list that made the screen flicker. Also, add a function that decides whether we are going to show the buglist or something else like the beg details