added flash notices in view