Fix urlbar. Clean up code

Fixed up urlbar background color and cleaned up code a bit