Added sidebar and messages functionality