fixed errors for return values of view methods