Modify pad_left and item_add_click functions to use arguments property and call methods of a function