Removed unused hooks
fixed CSRF