Cleaning up ui css function