fixed errors for apply form and restyled