added sidebar buttns and functionality