tried to implement modal, doesnt work