Added some functionality into the jade files