Changed code formating in widget's form method and fixed some php-errors