fix getHost exception in detailed view
remove unused code
fix date month bug