added auto-collapse to action menu (for mobile devices)