Dashboard doesnt close on esc key, moved date picker to a dialogbox