fixed bug with enabled state of insert pictures button