made the calendar show when its loading. Fixed the java script problem for picking dates