added styles to build the custom notification, minor tweaks to old code