adapted stylesheet and prevent submit