Implementation some buttons funtion