Added toasts for error messages and seperated logging in functionality
from the view.