Add background to svg and improve behaviour of sidebar