fixed the object problem with special thanks to shawn from catalystclass . Now I just need to add in redirect events