Added dynamic sidebar, and fixed its position