Move sidebar to its own file and load note when clicked