after adding reset and cancel button