Fixed several bugs, resizing of context menu, min value for date editing