add form style, show warning when query return null