working implementation of complaint submission