add lib and main page