Factorizing
Removed all code
New published posts widget
Displaying published posts widget
Removed settings for now
Added pagination support