Added inserting parameters on click in backend