fix parameters passed to modal. fix assignment edit modal and assignmetn picture