Added sidebar and dashboard functions