moved minimum duration calculation to Frame class
made enter keypress on duration box apply change