modal autorefresh bug solved and other additions