refactored to slim, added lib in layout.slim