ui code refactoring and implementation of behaviour of article sidebar for small viewports
fixed incorrect behavior when attaching the article sidebar to the bottom