functional buttons and loading gif added