Added style to form and fixed some minor bugs