open/close side layer based on form activation