Moved stylesheet calls to functions