Fixed layout errors
Added dialog activity