cleaned up memory leaks
more memory cleaning
Merge branch 'origin/master'
fixed date picker first and last day issue