Add pay function and css style