working version; contains fail, success notices which will not be in full app