fixed form buttons redirecting to index