Converted self function to actual function

Added reloadStyle function