Encapsulated functions with their divs