started to refactor to directive based modules

re-did the index part.