added clear input button in addition to clear stack button