added more funcionality to addView