dayClick and select functions are fixed

for issue #138
great :)