Fixed errors in datetime display and other small fixes