Layout beginnings and some JS modification to views