Added close Button

Took some functions from sidebar v1 and added them to sidebar v2
Also took some styles to make it work.