moved success-message styles to global. created an error dialogue that can be popped up