work on dynamic sidebar layout