Added the ability to auto dismiss flash messages