added a element dependencie and a reload function

reloading needs more testing!