altered else statements in browseWidget. Prettied some code.