modal component partially working