Updated AFFViewController with fixes for possible view memory leak and improved view handling.