added clear functionality along with select all