Fix on padmin.php
Added new class for check if element exists
Fixes on Foreignkeyfields