Refactor students index and generic layout