added fail and success pages