added class var to determine if feedback is error or success, render accordingly