Bug fixes, security improvements and styling updates