view translated to erb, some fixes