functionality for load button