onbeforeunload forbids Back and window closing
fixed bug with tabs on lessons deletion
fixes in downloading and other cases related to onbeforeunload