Implementing full time functionality in addItem dialog along with priority and cancel buttons.

Also added ability to close dialogs by pressing cancel