base form style and functionality