Changed the background and tried to refactor the code

Not really expert no code refactoring so i'm not sure whether this is
prett enough. Also there seems to be HUGE performance issues with
firefox.