added timeout (5s) to ajax requests, closes #34
don't close and reopen variable modal on refresh, closes #31