Added id in button tag and loading and reset property