implemented drag and drop of appointments as well as nice coloring
correctly show focus
shorten code