code cleanup of the myview

code cleanup of the myview