Fixed CSS and deprecated method reference for 3.1 update