unmount if statement formatting