added reset button, fixed field bounds