fix upload to folder
fix page leaving checks
fine ie8 compatability