fixed bug in validation
title/priority for shapes + some small fixes/enhancements in other places