Changed alert API, which no longer uses Session inside views; fixed an issue with booleans being automatically set to true when creating new items