fix alert box
satisfy foreign key
fix path