Close button for map legends. Added init() function for view objects.